package cn.wolfcode.rbac.domain;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

@Data @AllArgsConstructor @NoArgsConstructor
public class SystemDictionary  extends BaseDomain{

        private String sn;
        private String title;
        private String intro;

        public String getJson(){
                Map map = new HashMap();
                map.put("id",id);
                map.put("sn",sn);
                map.put("title",title);
                map.put("intro",intro);
                return JSON.toJSONString(map);
        }
}
